package gov.pbc.nn.kjgl.maintenance.entity;

import gov.pbc.nn.core.entity.BaseEntity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.springframework.transaction.annotation.Transactional;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 运维系统事件
 * 
 * @author Administrator
 * 
 */
@Entity
@Table(name = "T_SYS_EVENT")
public class SysEvent extends BaseEntity {

	private static final long serialVersionUID = 2299878817443469395L;

	@Column(name = "SYS_ID_", length = 60)
	private String sysId;
	@Column(name = "SYS_NAME_", length = 120)
	@PropertyDef(label = "系统名称")
	private String sysName;
	@Column(name = "START_DATE_")
	@PropertyDef(label = "出现时间")
	private Date startDate;
	@Column(name = "DESCRIPTION_", length = 500)
	@PropertyDef(label = "问题描述")
	private String description;
	@Column(name = "REMARK_", length = 500)
	@PropertyDef(label = "备注")
	private String remark;
	@Column(name = "CONVERT_PROBLEM_")
	@PropertyDef(label = "是否转为问题")
	private boolean convertProblem;
	@Column(name = "CONTINUITY_")
	@PropertyDef(label = "是否影响业务连续性")
	private boolean continuity;
	@Column(name = "SCHEME_", length = 2000)
	@PropertyDef(label = "方案")
	private String scheme;
	@Column(name = "SCHEME_ID_", length = 60)
	@PropertyDef(label = "方案文件")
	private String schemeId;
	@Column(name = "INFLUENCE_", length = 2000)
	@PropertyDef(label = "影响性分析")
	private String influence;
	@Column(name = "PROCESSOR_", length = 60)
	@PropertyDef(label = "处理人")
	private String processor;
	@Column(name = "PROCESSOR_NAME_", length = 60)
	@PropertyDef(label = "处理人", description = "处理人姓名")
	private String processorName;
	@Column(name = "STATE_")
	@PropertyDef(label = "状态",  description = "0:初始；5：审核中；10：完成；20：撤消")
	private int state;
	

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	public String getSysName() {
		return sysName;
	}

	public void setSysName(String sysName) {
		this.sysName = sysName;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public boolean getConvertProblem() {
		return convertProblem;
	}

	public void setConvertProblem(boolean convertProblem) {
		this.convertProblem = convertProblem;
	}

	public boolean getContinuity() {
		return continuity;
	}

	public void setContinuity(boolean continuity) {
		this.continuity = continuity;
	}

	public String getScheme() {
		return scheme;
	}

	public void setScheme(String scheme) {
		this.scheme = scheme;
	}

	public String getInfluence() {
		return influence;
	}

	public void setInfluence(String influence) {
		this.influence = influence;
	}

	public String getProcessor() {
		return processor;
	}

	public void setProcessor(String processor) {
		this.processor = processor;
	}

	public String getProcessorName() {
		return processorName;
	}

	public void setProcessorName(String processorName) {
		this.processorName = processorName;
	}

	public String getSchemeId() {
		return schemeId;
	}

	public void setSchemeId(String schemeId) {
		this.schemeId = schemeId;
	}

}
